package com.homework.vehicle.Ship;

/**
 * @author xiyu
 * @version 1.0
 * @date 2025/3/26 19:40
 * @description
 */
public abstract class Ship {
    private String type;

    public Ship(String type) {
        this.type = type;
    }

    public Ship() {
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public abstract void atk();
    public abstract void getInfo();

    @Override
    public String toString() {
        return "Ship{" +
                "type='" + type + '\'' +
                '}';
    }
}
